package com.runfig.figfactorybean;

import org.springframework.beans.factory.FactoryBean;

public class MyFactoryBean implements FactoryBean<Dog> {
    @Override
    public Dog getObject() throws Exception {
        Dog dog = new Dog();
        dog.setName("ssss");
        return dog;
    }

    @Override
    public Class<?> getObjectType() {
        return Dog.class;
    }
}
